/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __SOUNDSCENE_H__
#define __SOUNDSCENE_H__

#include <lib3d/node/Node.h>
#include <StaticContainer.h>

namespace liba
{
namespace lib3d
{
namespace node
{

class SoundEnviroment: 
	public lib3d::node::Node,
	public StaticContainer<SoundEnviroment>
{
public:
	static const Atom node_name;

	SoundEnviroment( const Atom & name, Node * parent );
	bool node_in_enviroment(const Node * node );
	void select();

	static bool select_enviroment( const Node * node );
protected:
	virtual bool on_attribute( xml::Provider * prov, const std::string & name, const std::string & value );
private:
	std::string preset;
	double radius;

	static SoundEnviroment root;
};

} // namespace node
} // namespace lib3d
} // liba


#endif //__SOUNDSCENE_H__